<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>killerbee.zbwardrive.zbwardrive</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="killerbee-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            ><a class="navbar" target="_top" href="http://code.google.com/p/killerbee/">KillerBee</a></th>
          </tr></table></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        <a href="killerbee-module.html">Package&nbsp;killerbee</a> ::
        <a href="killerbee.zbwardrive-module.html">Package&nbsp;zbwardrive</a> ::
        Module&nbsp;zbwardrive
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
        <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
    onclick="toggle_private();">hide&nbsp;private</a>]</span></td></tr>
        <tr><td align="right"><span class="options"
            >[<a href="frames.html" target="_top">frames</a
            >]&nbsp;|&nbsp;<a href="killerbee.zbwardrive.zbwardrive-pysrc.html"
            target="_top">no&nbsp;frames</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<h1 class="epydoc">Source Code for <a href="killerbee.zbwardrive.zbwardrive-module.html">Module killerbee.zbwardrive.zbwardrive</a></h1>
<pre class="py-src">
<a name="L1"></a><tt class="py-lineno"> 1</tt>  <tt class="py-line"><tt class="py-comment">#!/usr/bin/env python</tt> </tt>
<a name="L2"></a><tt class="py-lineno"> 2</tt>  <tt class="py-line"> </tt>
<a name="L3"></a><tt class="py-lineno"> 3</tt>  <tt class="py-line"><tt class="py-comment"># ZBWarDrive</tt> </tt>
<a name="L4"></a><tt class="py-lineno"> 4</tt>  <tt class="py-line"><tt class="py-comment"># rmspeers 2010-13</tt> </tt>
<a name="L5"></a><tt class="py-lineno"> 5</tt>  <tt class="py-line"><tt class="py-comment"># ZigBee/802.15.4 WarDriving Platform</tt> </tt>
<a name="L6"></a><tt class="py-lineno"> 6</tt>  <tt class="py-line"> </tt>
<a name="L7"></a><tt class="py-lineno"> 7</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt class="py-name">time</tt> <tt class="py-keyword">import</tt> <tt class="py-name">sleep</tt> </tt>
<a name="L8"></a><tt class="py-lineno"> 8</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt class="py-name">usb</tt> <tt class="py-keyword">import</tt> <tt class="py-name">USBError</tt> </tt>
<a name="L9"></a><tt class="py-lineno"> 9</tt>  <tt class="py-line"> </tt>
<a name="L10"></a><tt class="py-lineno">10</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-0" class="py-name" targets="Package killerbee=killerbee-module.html"><a title="killerbee" class="py-name" href="#" onclick="return doclink('link-0', 'killerbee', 'link-0');">killerbee</a></tt> <tt class="py-keyword">import</tt> <tt id="link-1" class="py-name" targets="Class killerbee.KillerBee=killerbee.KillerBee-class.html"><a title="killerbee.KillerBee" class="py-name" href="#" onclick="return doclink('link-1', 'KillerBee', 'link-1');">KillerBee</a></tt><tt class="py-op">,</tt> <tt id="link-2" class="py-name" targets="Module killerbee.kbutils=killerbee.kbutils-module.html"><a title="killerbee.kbutils" class="py-name" href="#" onclick="return doclink('link-2', 'kbutils', 'link-2');">kbutils</a></tt> </tt>
<a name="L11"></a><tt class="py-lineno">11</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-3" class="py-name" targets="Variable killerbee.GoodFET.SymbolTable.db=killerbee.GoodFET.SymbolTable-class.html#db,Module killerbee.zbwardrive.db=killerbee.zbwardrive.db-module.html"><a title="killerbee.GoodFET.SymbolTable.db
killerbee.zbwardrive.db" class="py-name" href="#" onclick="return doclink('link-3', 'db', 'link-3');">db</a></tt> <tt class="py-keyword">import</tt> <tt id="link-4" class="py-name" targets="Class killerbee.zbwardrive.db.ZBScanDB=killerbee.zbwardrive.db.ZBScanDB-class.html"><a title="killerbee.zbwardrive.db.ZBScanDB" class="py-name" href="#" onclick="return doclink('link-4', 'ZBScanDB', 'link-4');">ZBScanDB</a></tt> </tt>
<a name="L12"></a><tt class="py-lineno">12</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-5" class="py-name" targets="Module killerbee.zbwardrive.scanning=killerbee.zbwardrive.scanning-module.html"><a title="killerbee.zbwardrive.scanning" class="py-name" href="#" onclick="return doclink('link-5', 'scanning', 'link-5');">scanning</a></tt> <tt class="py-keyword">import</tt> <tt id="link-6" class="py-name" targets="Function killerbee.zbwardrive.scanning.doScan()=killerbee.zbwardrive.scanning-module.html#doScan"><a title="killerbee.zbwardrive.scanning.doScan" class="py-name" href="#" onclick="return doclink('link-6', 'doScan', 'link-6');">doScan</a></tt> </tt>
<a name="L13"></a><tt class="py-lineno">13</tt>  <tt class="py-line"> </tt>
<a name="L14"></a><tt class="py-lineno">14</tt>  <tt class="py-line"><tt id="link-7" class="py-name" targets="Variable killerbee.zbwardrive.zbwardrive.GPS_FREQUENCY=killerbee.zbwardrive.zbwardrive-module.html#GPS_FREQUENCY"><a title="killerbee.zbwardrive.zbwardrive.GPS_FREQUENCY" class="py-name" href="#" onclick="return doclink('link-7', 'GPS_FREQUENCY', 'link-7');">GPS_FREQUENCY</a></tt><tt class="py-op">=</tt><tt class="py-number">3</tt> <tt class="py-comment">#in seconds</tt> </tt>
<a name="L15"></a><tt class="py-lineno">15</tt>  <tt class="py-line"> </tt>
<a name="L16"></a><tt class="py-lineno">16</tt>  <tt class="py-line"><tt class="py-comment"># GPS Poller</tt> </tt>
<a name="gpsdPoller"></a><div id="gpsdPoller-def"><a name="L17"></a><tt class="py-lineno">17</tt> <a class="py-toggle" href="#" id="gpsdPoller-toggle" onclick="return toggle('gpsdPoller');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="killerbee.zbwardrive.zbwardrive-module.html#gpsdPoller">gpsdPoller</a><tt class="py-op">(</tt><tt class="py-param">currentGPS</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="gpsdPoller-collapsed" style="display:none;" pad="++" indent="++++"></div><div id="gpsdPoller-expanded"><a name="L18"></a><tt class="py-lineno">18</tt>  <tt class="py-line">    <tt class="py-docstring">'''</tt> </tt>
<a name="L19"></a><tt class="py-lineno">19</tt>  <tt class="py-line"><tt class="py-docstring">    @type currentGPS multiprocessing.Manager dict manager</tt> </tt>
<a name="L20"></a><tt class="py-lineno">20</tt>  <tt class="py-line"><tt class="py-docstring">    @arg currentGPS store relavent pieces of up-to-date GPS info</tt> </tt>
<a name="L21"></a><tt class="py-lineno">21</tt>  <tt class="py-line"><tt class="py-docstring">    '''</tt> </tt>
<a name="L22"></a><tt class="py-lineno">22</tt>  <tt class="py-line">    <tt class="py-keyword">import</tt> <tt id="link-8" class="py-name" targets="Package killerbee.openear.gps=killerbee.openear.gps-module.html,Class killerbee.openear.gps.gps'.gps=killerbee.openear.gps.gps%27.gps-class.html,Package killerbee.zbwardrive.gps=killerbee.zbwardrive.gps-module.html,Class killerbee.zbwardrive.gps.gps'.gps=killerbee.zbwardrive.gps.gps%27.gps-class.html"><a title="killerbee.openear.gps
killerbee.openear.gps.gps'.gps
killerbee.zbwardrive.gps
killerbee.zbwardrive.gps.gps'.gps" class="py-name" href="#" onclick="return doclink('link-8', 'gps', 'link-8');">gps</a></tt> </tt>
<a name="L23"></a><tt class="py-lineno">23</tt>  <tt class="py-line">    <tt class="py-name">gpsd</tt> <tt class="py-op">=</tt> <tt id="link-9" class="py-name"><a title="killerbee.openear.gps
killerbee.openear.gps.gps'.gps
killerbee.zbwardrive.gps
killerbee.zbwardrive.gps.gps'.gps" class="py-name" href="#" onclick="return doclink('link-9', 'gps', 'link-8');">gps</a></tt><tt class="py-op">.</tt><tt id="link-10" class="py-name"><a title="killerbee.openear.gps
killerbee.openear.gps.gps'.gps
killerbee.zbwardrive.gps
killerbee.zbwardrive.gps.gps'.gps" class="py-name" href="#" onclick="return doclink('link-10', 'gps', 'link-8');">gps</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L24"></a><tt class="py-lineno">24</tt>  <tt class="py-line">    <tt class="py-name">gpsd</tt><tt class="py-op">.</tt><tt id="link-11" class="py-name" targets="Method killerbee.openear.gps.gps'.gps.poll()=killerbee.openear.gps.gps%27.gps-class.html#poll,Method killerbee.zbwardrive.gps.gps'.gps.poll()=killerbee.zbwardrive.gps.gps%27.gps-class.html#poll"><a title="killerbee.openear.gps.gps'.gps.poll
killerbee.zbwardrive.gps.gps'.gps.poll" class="py-name" href="#" onclick="return doclink('link-11', 'poll', 'link-11');">poll</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L25"></a><tt class="py-lineno">25</tt>  <tt class="py-line">    <tt class="py-name">gpsd</tt><tt class="py-op">.</tt><tt id="link-12" class="py-name" targets="Method killerbee.openear.gps.client.gpsjson.stream()=killerbee.openear.gps.client.gpsjson-class.html#stream,Method killerbee.openear.gps.gps'.gps.stream()=killerbee.openear.gps.gps%27.gps-class.html#stream,Method killerbee.zbwardrive.gps.client.gpsjson.stream()=killerbee.zbwardrive.gps.client.gpsjson-class.html#stream,Method killerbee.zbwardrive.gps.gps'.gps.stream()=killerbee.zbwardrive.gps.gps%27.gps-class.html#stream"><a title="killerbee.openear.gps.client.gpsjson.stream
killerbee.openear.gps.gps'.gps.stream
killerbee.zbwardrive.gps.client.gpsjson.stream
killerbee.zbwardrive.gps.gps'.gps.stream" class="py-name" href="#" onclick="return doclink('link-12', 'stream', 'link-12');">stream</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L26"></a><tt class="py-lineno">26</tt>  <tt class="py-line"> </tt>
<a name="L27"></a><tt class="py-lineno">27</tt>  <tt class="py-line">    <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L28"></a><tt class="py-lineno">28</tt>  <tt class="py-line">        <tt class="py-keyword">while</tt> <tt class="py-name">True</tt><tt class="py-op">:</tt> </tt>
<a name="L29"></a><tt class="py-lineno">29</tt>  <tt class="py-line">            <tt class="py-name">gpsd</tt><tt class="py-op">.</tt><tt id="link-13" class="py-name"><a title="killerbee.openear.gps.gps'.gps.poll
killerbee.zbwardrive.gps.gps'.gps.poll" class="py-name" href="#" onclick="return doclink('link-13', 'poll', 'link-11');">poll</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L30"></a><tt class="py-lineno">30</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">gpsd</tt><tt class="py-op">.</tt><tt class="py-name">fix</tt><tt class="py-op">.</tt><tt class="py-name">mode</tt> <tt class="py-op">&gt;</tt> <tt class="py-number">1</tt><tt class="py-op">:</tt> <tt class="py-comment">#1=NO_FIX, 2=FIX, 3=DGPS_FIX</tt> </tt>
<a name="L31"></a><tt class="py-lineno">31</tt>  <tt class="py-line">                <tt class="py-name">lat</tt> <tt class="py-op">=</tt> <tt class="py-name">gpsd</tt><tt class="py-op">.</tt><tt class="py-name">fix</tt><tt class="py-op">.</tt><tt id="link-14" class="py-name" targets="Variable killerbee.openear.scanner.latitude=killerbee.openear.scanner-module.html#latitude"><a title="killerbee.openear.scanner.latitude" class="py-name" href="#" onclick="return doclink('link-14', 'latitude', 'link-14');">latitude</a></tt> </tt>
<a name="L32"></a><tt class="py-lineno">32</tt>  <tt class="py-line">                <tt class="py-name">lng</tt> <tt class="py-op">=</tt> <tt class="py-name">gpsd</tt><tt class="py-op">.</tt><tt class="py-name">fix</tt><tt class="py-op">.</tt><tt id="link-15" class="py-name" targets="Variable killerbee.openear.scanner.longitude=killerbee.openear.scanner-module.html#longitude"><a title="killerbee.openear.scanner.longitude" class="py-name" href="#" onclick="return doclink('link-15', 'longitude', 'link-15');">longitude</a></tt> </tt>
<a name="L33"></a><tt class="py-lineno">33</tt>  <tt class="py-line">                <tt class="py-name">alt</tt> <tt class="py-op">=</tt> <tt class="py-name">gpsd</tt><tt class="py-op">.</tt><tt class="py-name">fix</tt><tt class="py-op">.</tt><tt id="link-16" class="py-name" targets="Variable killerbee.openear.scanner.altitude=killerbee.openear.scanner-module.html#altitude"><a title="killerbee.openear.scanner.altitude" class="py-name" href="#" onclick="return doclink('link-16', 'altitude', 'link-16');">altitude</a></tt> </tt>
<a name="L34"></a><tt class="py-lineno">34</tt>  <tt class="py-line">                <tt class="py-comment">#print 'latitude    ' , lat</tt> </tt>
<a name="L35"></a><tt class="py-lineno">35</tt>  <tt class="py-line">                <tt class="py-comment">#print 'longitude   ' , lng</tt> </tt>
<a name="L36"></a><tt class="py-lineno">36</tt>  <tt class="py-line">                <tt class="py-comment">#TODO do we want to use the GPS time in any way?</tt> </tt>
<a name="L37"></a><tt class="py-lineno">37</tt>  <tt class="py-line">                <tt class="py-comment">#print 'time utc    ' , gpsd.utc,' + ', gpsd.fix.time</tt> </tt>
<a name="L38"></a><tt class="py-lineno">38</tt>  <tt class="py-line">                <tt class="py-comment">#print 'altitude (m)' , alt</tt> </tt>
<a name="L39"></a><tt class="py-lineno">39</tt>  <tt class="py-line">                <tt class="py-name">currentGPS</tt><tt class="py-op">[</tt><tt class="py-string">'lat'</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">lat</tt> </tt>
<a name="L40"></a><tt class="py-lineno">40</tt>  <tt class="py-line">                <tt class="py-name">currentGPS</tt><tt class="py-op">[</tt><tt class="py-string">'lng'</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">lng</tt> </tt>
<a name="L41"></a><tt class="py-lineno">41</tt>  <tt class="py-line">                <tt class="py-name">currentGPS</tt><tt class="py-op">[</tt><tt class="py-string">'alt'</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">alt</tt> </tt>
<a name="L42"></a><tt class="py-lineno">42</tt>  <tt class="py-line">            <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L43"></a><tt class="py-lineno">43</tt>  <tt class="py-line">                <tt class="py-keyword">print</tt> <tt class="py-string">"Waiting for a GPS fix."</tt> </tt>
<a name="L44"></a><tt class="py-lineno">44</tt>  <tt class="py-line">                <tt class="py-comment">#TODO timeout lat/lng/alt values if too old...?</tt> </tt>
<a name="L45"></a><tt class="py-lineno">45</tt>  <tt class="py-line">            <tt class="py-name">sleep</tt><tt class="py-op">(</tt><tt id="link-17" class="py-name"><a title="killerbee.zbwardrive.zbwardrive.GPS_FREQUENCY" class="py-name" href="#" onclick="return doclink('link-17', 'GPS_FREQUENCY', 'link-7');">GPS_FREQUENCY</a></tt><tt class="py-op">)</tt> </tt>
<a name="L46"></a><tt class="py-lineno">46</tt>  <tt class="py-line">    <tt class="py-keyword">except</tt> <tt class="py-name">KeyboardInterrupt</tt><tt class="py-op">:</tt> </tt>
<a name="L47"></a><tt class="py-lineno">47</tt>  <tt class="py-line">        <tt class="py-keyword">print</tt> <tt class="py-string">"Got KeyboardInterrupt in gpsdPoller, returning."</tt> </tt>
<a name="L48"></a><tt class="py-lineno">48</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> </tt>
</div><a name="L49"></a><tt class="py-lineno">49</tt>  <tt class="py-line"> </tt>
<a name="L50"></a><tt class="py-lineno">50</tt>  <tt class="py-line"><tt class="py-comment"># startScan</tt> </tt>
<a name="L51"></a><tt class="py-lineno">51</tt>  <tt class="py-line"><tt class="py-comment"># Detects attached interfaces</tt> </tt>
<a name="L52"></a><tt class="py-lineno">52</tt>  <tt class="py-line"><tt class="py-comment"># Initiates scanning using doScan()</tt> </tt>
<a name="startScan"></a><div id="startScan-def"><a name="L53"></a><tt class="py-lineno">53</tt> <a class="py-toggle" href="#" id="startScan-toggle" onclick="return toggle('startScan');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="killerbee.zbwardrive.zbwardrive-module.html#startScan">startScan</a><tt class="py-op">(</tt><tt class="py-param">zbdb</tt><tt class="py-op">,</tt> <tt class="py-param">currentGPS</tt><tt class="py-op">,</tt> <tt class="py-param">verbose</tt><tt class="py-op">=</tt><tt class="py-name">False</tt><tt class="py-op">,</tt> <tt class="py-param">dblog</tt><tt class="py-op">=</tt><tt class="py-name">False</tt><tt class="py-op">,</tt> <tt class="py-param">agressive</tt><tt class="py-op">=</tt><tt class="py-name">False</tt><tt class="py-op">,</tt> <tt class="py-param">include</tt><tt class="py-op">=</tt><tt class="py-op">[</tt><tt class="py-op">]</tt><tt class="py-op">,</tt> <tt class="py-param">ignore</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="startScan-collapsed" style="display:none;" pad="++" indent="++++"></div><div id="startScan-expanded"><a name="L54"></a><tt class="py-lineno">54</tt>  <tt class="py-line">    <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L55"></a><tt class="py-lineno">55</tt>  <tt class="py-line">        <tt class="py-name">kb</tt> <tt class="py-op">=</tt> <tt id="link-18" class="py-name"><a title="killerbee.KillerBee" class="py-name" href="#" onclick="return doclink('link-18', 'KillerBee', 'link-1');">KillerBee</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L56"></a><tt class="py-lineno">56</tt>  <tt class="py-line">    <tt class="py-keyword">except</tt> <tt class="py-name">USBError</tt><tt class="py-op">,</tt> <tt class="py-name">e</tt><tt class="py-op">:</tt> </tt>
<a name="L57"></a><tt class="py-lineno">57</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">e</tt><tt class="py-op">.</tt><tt class="py-name">args</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">.</tt><tt class="py-name">find</tt><tt class="py-op">(</tt><tt class="py-string">'Operation not permitted'</tt><tt class="py-op">)</tt> <tt class="py-op">&gt;=</tt> <tt class="py-number">0</tt><tt class="py-op">:</tt> </tt>
<a name="L58"></a><tt class="py-lineno">58</tt>  <tt class="py-line">            <tt class="py-keyword">print</tt> <tt class="py-string">'Error: Permissions error, try running using sudo.'</tt> </tt>
<a name="L59"></a><tt class="py-lineno">59</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L60"></a><tt class="py-lineno">60</tt>  <tt class="py-line">            <tt class="py-keyword">print</tt> <tt class="py-string">'Error: USBError:'</tt><tt class="py-op">,</tt> <tt class="py-name">e</tt> </tt>
<a name="L61"></a><tt class="py-lineno">61</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">False</tt> </tt>
<a name="L62"></a><tt class="py-lineno">62</tt>  <tt class="py-line">    <tt class="py-keyword">except</tt> <tt class="py-name">Exception</tt><tt class="py-op">,</tt> <tt class="py-name">e</tt><tt class="py-op">:</tt> </tt>
<a name="L63"></a><tt class="py-lineno">63</tt>  <tt class="py-line">        <tt class="py-comment">#print 'Error: Missing KillerBee USB hardware:', e</tt> </tt>
<a name="L64"></a><tt class="py-lineno">64</tt>  <tt class="py-line">        <tt class="py-keyword">print</tt> <tt class="py-string">'Error: Issue starting KillerBee instance:'</tt><tt class="py-op">,</tt> <tt class="py-name">e</tt> </tt>
<a name="L65"></a><tt class="py-lineno">65</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">False</tt> </tt>
<a name="L66"></a><tt class="py-lineno">66</tt>  <tt class="py-line">    <tt class="py-keyword">for</tt> <tt id="link-19" class="py-name" targets="Function killerbee.scapy_extensions.kbdev()=killerbee.scapy_extensions-module.html#kbdev"><a title="killerbee.scapy_extensions.kbdev" class="py-name" href="#" onclick="return doclink('link-19', 'kbdev', 'link-19');">kbdev</a></tt> <tt class="py-keyword">in</tt> <tt id="link-20" class="py-name"><a title="killerbee.kbutils" class="py-name" href="#" onclick="return doclink('link-20', 'kbutils', 'link-2');">kbutils</a></tt><tt class="py-op">.</tt><tt id="link-21" class="py-name" targets="Function killerbee.kbutils.devlist()=killerbee.kbutils-module.html#devlist"><a title="killerbee.kbutils.devlist" class="py-name" href="#" onclick="return doclink('link-21', 'devlist', 'link-21');">devlist</a></tt><tt class="py-op">(</tt><tt id="link-22" class="py-name"><a title="killerbee.openear.gps
killerbee.openear.gps.gps'.gps
killerbee.zbwardrive.gps
killerbee.zbwardrive.gps.gps'.gps" class="py-name" href="#" onclick="return doclink('link-22', 'gps', 'link-8');">gps</a></tt><tt class="py-op">=</tt><tt class="py-name">ignore</tt><tt class="py-op">,</tt> <tt class="py-name">include</tt><tt class="py-op">=</tt><tt class="py-name">include</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L67"></a><tt class="py-lineno">67</tt>  <tt class="py-line">        <tt class="py-keyword">print</tt> <tt class="py-string">'Found device at %s: \'%s\''</tt> <tt class="py-op">%</tt> <tt class="py-op">(</tt><tt id="link-23" class="py-name"><a title="killerbee.scapy_extensions.kbdev" class="py-name" href="#" onclick="return doclink('link-23', 'kbdev', 'link-19');">kbdev</a></tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">,</tt> <tt id="link-24" class="py-name"><a title="killerbee.scapy_extensions.kbdev" class="py-name" href="#" onclick="return doclink('link-24', 'kbdev', 'link-19');">kbdev</a></tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt><tt class="py-op">)</tt> </tt>
<a name="L68"></a><tt class="py-lineno">68</tt>  <tt class="py-line">        <tt class="py-name">zbdb</tt><tt class="py-op">.</tt><tt id="link-25" class="py-name" targets="Method killerbee.zbwardrive.db.ZBScanDB.store_devices()=killerbee.zbwardrive.db.ZBScanDB-class.html#store_devices"><a title="killerbee.zbwardrive.db.ZBScanDB.store_devices" class="py-name" href="#" onclick="return doclink('link-25', 'store_devices', 'link-25');">store_devices</a></tt><tt class="py-op">(</tt> </tt>
<a name="L69"></a><tt class="py-lineno">69</tt>  <tt class="py-line">            <tt id="link-26" class="py-name"><a title="killerbee.scapy_extensions.kbdev" class="py-name" href="#" onclick="return doclink('link-26', 'kbdev', 'link-19');">kbdev</a></tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">,</tt> <tt class="py-comment">#devid</tt> </tt>
<a name="L70"></a><tt class="py-lineno">70</tt>  <tt class="py-line">            <tt id="link-27" class="py-name"><a title="killerbee.scapy_extensions.kbdev" class="py-name" href="#" onclick="return doclink('link-27', 'kbdev', 'link-19');">kbdev</a></tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt><tt class="py-op">,</tt> <tt class="py-comment">#devstr</tt> </tt>
<a name="L71"></a><tt class="py-lineno">71</tt>  <tt class="py-line">            <tt id="link-28" class="py-name"><a title="killerbee.scapy_extensions.kbdev" class="py-name" href="#" onclick="return doclink('link-28', 'kbdev', 'link-19');">kbdev</a></tt><tt class="py-op">[</tt><tt class="py-number">2</tt><tt class="py-op">]</tt><tt class="py-op">)</tt> <tt class="py-comment">#devserial</tt> </tt>
<a name="L72"></a><tt class="py-lineno">72</tt>  <tt class="py-line">    <tt class="py-name">kb</tt><tt class="py-op">.</tt><tt id="link-29" class="py-name" targets="Method killerbee.KillerBee.close()=killerbee.KillerBee-class.html#close,Method killerbee.daintree.DainTreeDumper.close()=killerbee.daintree.DainTreeDumper-class.html#close,Method killerbee.daintree.DainTreeReader.close()=killerbee.daintree.DainTreeReader-class.html#close,Method killerbee.dblog.DBLogger.close()=killerbee.dblog.DBLogger-class.html#close,Method killerbee.dblog.DBReader.close()=killerbee.dblog.DBReader-class.html#close,Method killerbee.dev_apimote.APIMOTE.close()=killerbee.dev_apimote.APIMOTE-class.html#close,Method killerbee.dev_freakduino.FREAKDUINO.close()=killerbee.dev_freakduino.FREAKDUINO-class.html#close,Method killerbee.dev_rzusbstick.RZUSBSTICK.close()=killerbee.dev_rzusbstick.RZUSBSTICK-class.html#close,Method killerbee.dev_telosb.TELOSB.close()=killerbee.dev_telosb.TELOSB-class.html#close,Method killerbee.dev_wislab.WISLAB.close()=killerbee.dev_wislab.WISLAB-class.html#close,Method killerbee.dev_zigduino.ZIGDUINO.close()=killerbee.dev_zigduino.ZIGDUINO-class.html#close,Method killerbee.openear.gps.client.gpscommon.close()=killerbee.openear.gps.client.gpscommon-class.html#close,Method killerbee.pcapdump.PcapDumper.close()=killerbee.pcapdump.PcapDumper-class.html#close,Method killerbee.pcapdump.PcapReader.close()=killerbee.pcapdump.PcapReader-class.html#close,Method killerbee.zbwardrive.db.ZBScanDB.close()=killerbee.zbwardrive.db.ZBScanDB-class.html#close,Method killerbee.zbwardrive.gps.client.gpscommon.close()=killerbee.zbwardrive.gps.client.gpscommon-class.html#close"><a title="killerbee.KillerBee.close
killerbee.daintree.DainTreeDumper.close
killerbee.daintree.DainTreeReader.close
killerbee.dblog.DBLogger.close
killerbee.dblog.DBReader.close
killerbee.dev_apimote.APIMOTE.close
killerbee.dev_freakduino.FREAKDUINO.close
killerbee.dev_rzusbstick.RZUSBSTICK.close
killerbee.dev_telosb.TELOSB.close
killerbee.dev_wislab.WISLAB.close
killerbee.dev_zigduino.ZIGDUINO.close
killerbee.openear.gps.client.gpscommon.close
killerbee.pcapdump.PcapDumper.close
killerbee.pcapdump.PcapReader.close
killerbee.zbwardrive.db.ZBScanDB.close
killerbee.zbwardrive.gps.client.gpscommon.close" class="py-name" href="#" onclick="return doclink('link-29', 'close', 'link-29');">close</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L73"></a><tt class="py-lineno">73</tt>  <tt class="py-line">    <tt id="link-30" class="py-name"><a title="killerbee.zbwardrive.scanning.doScan" class="py-name" href="#" onclick="return doclink('link-30', 'doScan', 'link-6');">doScan</a></tt><tt class="py-op">(</tt><tt class="py-name">zbdb</tt><tt class="py-op">,</tt> <tt class="py-name">currentGPS</tt><tt class="py-op">,</tt> <tt id="link-31" class="py-name" targets="Variable killerbee.GoodFET.GoodFET.verbose=killerbee.GoodFET.GoodFET-class.html#verbose,Variable killerbee.GoodFETatmel128.GoodFETatmel128rfa1.verbose=killerbee.GoodFETatmel128.GoodFETatmel128rfa1-class.html#verbose"><a title="killerbee.GoodFET.GoodFET.verbose
killerbee.GoodFETatmel128.GoodFETatmel128rfa1.verbose" class="py-name" href="#" onclick="return doclink('link-31', 'verbose', 'link-31');">verbose</a></tt><tt class="py-op">=</tt><tt id="link-32" class="py-name"><a title="killerbee.GoodFET.GoodFET.verbose
killerbee.GoodFETatmel128.GoodFETatmel128rfa1.verbose" class="py-name" href="#" onclick="return doclink('link-32', 'verbose', 'link-31');">verbose</a></tt><tt class="py-op">,</tt> <tt id="link-33" class="py-name" targets="Module killerbee.dblog=killerbee.dblog-module.html"><a title="killerbee.dblog" class="py-name" href="#" onclick="return doclink('link-33', 'dblog', 'link-33');">dblog</a></tt><tt class="py-op">=</tt><tt id="link-34" class="py-name"><a title="killerbee.dblog" class="py-name" href="#" onclick="return doclink('link-34', 'dblog', 'link-33');">dblog</a></tt><tt class="py-op">,</tt> <tt class="py-name">agressive</tt><tt class="py-op">=</tt><tt class="py-name">agressive</tt><tt class="py-op">)</tt> </tt>
<a name="L74"></a><tt class="py-lineno">74</tt>  <tt class="py-line">    <tt class="py-keyword">return</tt> <tt class="py-name">True</tt> </tt>
</div><a name="L75"></a><tt class="py-lineno">75</tt>  <tt class="py-line"> </tt><script type="text/javascript">
<!--
expandto(location.href);
// -->
</script>
</pre>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="killerbee-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            ><a class="navbar" target="_top" href="http://code.google.com/p/killerbee/">KillerBee</a></th>
          </tr></table></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">
    Generated by Epydoc 3.0.1 on Mon Dec 30 17:49:14 2013
    </td>
    <td align="right" class="footer">
      <a target="mainFrame" href="http://epydoc.sourceforge.net"
        >http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie();
  // -->
</script>
</body>
</html>
